/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: common
 * Description: Common classes
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 */
package ru.ffind.common.model;

import java.util.Date;

/**
 * Directory entry, which can be file or directory
 *
 * @author Rage Steel
 */
public interface Entry {
	
	/**
	 * 
	 * Return name, only last portion of path, not full path
	 * 
	 * @return name
	 * 
	 */
	String getName();
	
	/**
	 * 
	 * Return last modified date for the item
	 * 
	 * @return last modified date
	 */
	Date getDatetime();
	
	/**
	 * 
	 * Return absolute path for the entry
	 * @param parentAbsPath Absolute path for the parent directory of entry
	 * 
	 * @return
	 */
	String getAbsPath(String parentAbsPath);
	
	/**
	 * 
	 * Return true if metadata with given object 
	 * 
	 * @return
	 */
	boolean equalsMetadata(Entry entry);
}
